←Select platform

CollectionChanged Event

Summary
Occurs when the collection changes.
Syntax
C#
C++/CLI
Java
Python
public event EventHandler<AnnNotifyCollectionChangedEventArgs> CollectionChanged 
public void addCollectionChangedListener(AnnNotifyCollectionChangedListener listener) 
public void removeCollectionChangedListener(AnnNotifyCollectionChangedListener listener) 
public:  
   event EventHandler<AnnNotifyCollectionChangedEventArgs^>^ CollectionChanged 
def CollectionChanged(sender,e): # sender: AnnObservableCollection`1 e: AnnNotifyCollectionChangedEventArgs 
Event Data

The event handler receives an argument of type AnnNotifyCollectionChangedEventArgs containing data related to this event. The following AnnNotifyCollectionChangedEventArgs properties provide information specific to this event.

PropertyDescription
Action Gets the action that caused the event.
NewItems Gets the list of new items involved in the change.
NewStartingIndex Gets the index at which the change occurred.
OldItems Gets the list of items affected by a Replace, Remove, or Move action.
OldStartingIndex Gets the index at which a Move, Remove, or Replace action occurred.
Requirements

Target Platforms

Help Version 22.0.2023.7.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Annotations.Engine Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.